<template>
  <el-table :data="dept" border style="width: 100%">
    <el-table-column prop="deptId" label="部门ID" width="180" />
    <el-table-column prop="name" label="部门名称" width="180" />
    <el-table-column prop="contacts" label="联系人" />
    <el-table-column prop="name" label="排序号" />
  </el-table>
</template>

<script>
import Axios from 'axios'
export default {
  data() {
    return {
      dept: []
    }
  },
  mounted() {
    this.getDept()
  },
  methods: {
    getDept() {
      Axios.get('http://localhost:9999/wish/sizu/system/dept/deptList').then(
        res => {
          this.dept = res.data
        }
      )
    }
  }
}
</script>

